package main

import (
	"fmt"
	// "strconv"
	"strings"
)

func main(){
	// n, err := strconv.Atoi("123")
	// if err != nil{
	// 	fmt.Println("转换错误",err)
	// }else{
	// 	fmt.Println("转成结果为",n)
	// }

	// str := strconv.Itoa(1233)
	// fmt.Printf("str=%v,str=%T",str,str)

	// var bytes = [] byte("hello go")
	// fmt.Printf("bytes=%v\n",bytes)
	// str := string([]byte{97,98,99})
	// fmt.Printf("str=%v\n",str)

// 	b := strings.Contains("seafood","mary")
// 	fmt.Printf("b=%v\n",b)

	// str2  := "go go hello"
	// str := strings.Replace(str2,"go","北京",-1) // str2 = 北京 北京 hello
	// fmt.Printf("str=%v str2=%v\n",str, str2)

	// str := strings.Trim("! hello! "," !")
	// fmt.Printf("str=%q \n",str)

	b := strings.HasPrefix("ftp://192.168.10.1","ftp")
	fmt.Printf("str=%v \n",b)

}